#include <stdio.h>
#include <string.h>
int fun(int score[], int m, int below[])
{
	int sum = 0;
	for (int i = 0;i < m;i++)
	{
		sum = sum + score[i];
	}
	double aver = 1.0 * sum / m;
	int j = 0;
	for (int i = 0;i < m;i++)
	{
		if (score[i] < aver)
		{
			below[j] = score[i];
			j++;
		}
	}
	return j;
}
int main()
{
	int i, n, below[9];
	int score[9];
	for (i = 0;i < 9;i++)
		scanf_s("%d", &score[i]);
	n = fun(score, 9, below);
	for (i = 0;i < n;i++)
		printf("%d ", below[i]);
	return 0;
}
